<!-- BEGIN SIDEBAR -->
<aside>
	<div id="sidebar" class="nav-collapse">
		<ul class="sidebar-menu" id="nav-accordion">
			<li>
				<a href="<?php echo site_url('Pkadmin/Admin/index');?>" <?php if(($current['id'] == 1)) echo 'class="active"';?>>
					<i class="fa fa-dashboard"></i>
					<span>
						控制台
					</span>
				</a>
			</li>
			<?php $class = array(
						1=>'label-info',
						2=>'label-success',
						3=>'label-danger',
						4=>'label-primary',
						5=>'label-warning',
						6=>'label-inverse',
						7=>'label-default',);
				foreach ($menu as $item):?>
			<li class="sub-menu">
				<a href="javascript:;" <?php if(($item['id']==$current['id']) || ($item['id']==$current['pid']) || ($item['id']==$current['ppid'])) echo 'class="active"';?>>
					<i class="<?php echo $item['icon'];?>"></i>
					<span>
						<?php echo $item['title'];?>
					</span>
					<span class="label <?php if(count($item['children'])<8) echo $class[count($item['children'])]; else echo " label-inverse ";?> span-sidebar">
						<?php echo count($item['children']);?>
					</span>
				</a>
				<ul class="sub">
					<?php foreach($item['children'] as $child):?>
					<li <?php if(($child[ 'id']==$current['id']) || ($child[ 'id']==$current['pid'])) echo 'class="active"';?>>
						<a href="<?php echo site_url('Pkadmin/'.$child['name']);?>">
							<?php echo $child['title'];?>
						</a>
					</li>
					<?php endforeach;?>
				</ul>
			</li>

			<?php endforeach;?>
		</ul>
	</div>
</aside>
<!-- END SIDEBAR -->